<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>jQuery.browser</title>
<meta name="keywords" content="jQuery 1.2 API Reference,Visual jQuery 1.2,jQuery doc,jQuery API,jQuery,jQuery 1.2 API 参考文档中文版,中文版" />
<meta name="description" content="jQuery 1.2 API 文档中文版，提供最新版 jQuery 开发帮助。" />
<link rel="stylesheet" type="text/css" href="../../style/jqueryapi.css" />
<script type="text/javascript" src="../../style/lib/jquery126.js"></script>
 </script>
<script type="text/javascript" src="../../style/jqueryapi.js"></script>
<link rel="shortcut icon" href="../../style/img/favicon.ico" />
</head>
<body>
<div id="topnav">
		<a href="http://www.jQuery.com/" title="jQuery官网" target="_blank" class="topnav">jQuery官网</a>
	<span class="topnav">|</span>
	<a href="http://jquery.org.cn/" title="jQuery中文网站" target="_blank" class="topnav">jQuery中文网站</a>
	<span class="topnav">|</span>
	<a href="http://www.cn-cuckoo.com/" title="1.1版译者" target="_blank" class="topnav">为之漫笔</a>
	<span class="topnav">|</span>
	<a href="http://shawphy.com/" title="1.2版翻译整理者" target="_blank" class="topnav">Shawphy</a>
    <span class="topnav">|</span>
	<a href="http://www.51toria.cn" title="CHM文档制作者:一揪" target="_blank" class="topnav">CHM文档制作者</a> 
	<span class="topnav">|</span>
	<a href="http://dl.getdropbox.com/u/81097/jQueryAPI_CHM.CHM" title="" target="_blank" class="topnav">CHM最新版本下载</a> 
</div>
<hr style="color:#595959;" />

<div class="content">
				<h1>jQuery.browser</h1>
				<div style="" id="overview" class="tabs-container">
					<div class="desc"><div>浏览器内核标识。依据 navigator.userAgent 判断。</div> <div class="longdesc">可用值: <p> safari </p><p> opera </p><p> msie </p><p> mozilla </p> <p>此属性在 DOM 树加载完成前即有效，可用于为特定浏览器设置 ready 事件。 </p><p>浏览器对象检测技术与此属性共同使用可提供可靠的浏览器检测支持。</p></div></div>
					<hr />
					<div class="desc"><div>Contains flags for the useragent, read from navigator.userAgent.</div> <div class="longdesc">Available flags are: <p> safari </p><p> opera </p><p> msie </p><p> mozilla </p> <p>This property is available before the DOM is ready, therefore you can use it to add ready events only for certain browsers. </p><p>There are situations where object detection is not reliable enough, in such cases it makes sense to use browser detection. </p> <p>A combination of browser and object detection yields quite reliable results.</p></div></div>
				</div>
				<h2>返回值</h2>
				<p class="indent">Map</p>
				<h2>示例</h2>
				<p class="indent">
					在 Microsoft's Internet Explorer 浏览器中返回 true。
				</p>
				<p class="indent"><strong>jQuery 代码:</strong></p>
				<div class="code">
					$.browser.msie 
				</div>
				<hr />
				<p class="indent">
					仅在 Safari 中提示 "this is safari!" 。
				</p>
				<p class="indent"><strong>jQuery 代码:</strong></p>
				<div class="code">
					if ($.browser.safari) {<br/>
&nbsp;&nbsp; alert("this is safari!");<br/>
} 
				</div>
<p class="indent" style="text-align:center;">本手册由<a href="www.51toria.cn">一揪</a>整理编辑,并保持长期更新,最新版本请自行查找</p>
</div>

</body>
</html>
